home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / DEV / A-B / Alpha.5.05.cpt / Help / Shells < prev    next >
Text File  |  1992-08-29  |  2KB  |  46 lines

  1.  
  2.     SHELLS
  3.     
  4. The basic idea of the shells is to provide an interactive way to access 
  5. TCL, it is *NOT* intended to serve as a pseudo-unix-shell. However, I 
  6. don't use MPW or AU/X and therefore I implemented a very few useful 
  7. functions. All pathnames must be mac pathnames, relative pathnames start 
  8. with colons, absolute pathnames don't. For instance, ':file1' specifies a 
  9. file named 'file1' in the current directory. '::file2' specfies a file in 
  10. the parent directory, and ':::file3' is a file in the parent's parent's 
  11. directory. Additionally, hitting the tab key w/ a partial pathname 
  12. invokes a filename-completion function that tries to fill in the rest of 
  13. the characters of the name.
  14.  
  15. cd <relative or absolute pathname>
  16.     Change directory. Pathnames must be 
  17. cp <file1> <file2>
  18.     or
  19. cp <file1> .... <destDir>
  20.     Basic unix functionality. Not recursive.
  21.  
  22. ls [-Fl] [<file>]...
  23.     Two, mutually exclusive flags. '-F' just gives the normal display, with 
  24.     a '*' behind applications and a '/' behind directories (folders). '-l' 
  25.     presents a long listing, including sizes of both forks, creator, file 
  26.     type, and last modification time. 'procs.tcl' includes functions 'l' and 
  27.     'll' which serve as my Unix aliases to 'ls -F' and 'ls -l'.
  28.     
  29. mv <file1> <file2>
  30.     Moves a file, potentially across volume boundaries. Not recursive.
  31.     
  32. rm <file>...
  33.     Removes files and empty directories. Currently no way to recursively 
  34.     remove (although you could code up a TCL proc to do this).
  35.     
  36.  
  37. The file "shell.tcl" contains Tcl code implementing much of the shell 
  38. interface. The interface contains 'histNext' and 'histPrev' (bound to 
  39. control-p and control-n) commands that let you scroll through previous 
  40. commands without retyping. Unfortunately, it doesn't seem possible to 
  41. access the previous command until you have at least started executing the 
  42. next, where a "command" here means a command evaluated by the shell. Since 
  43. the above commands are issued before you execute whatever command you 
  44. choose next, you're stuck.
  45.  
  46.